package com.xinzhitong.www.utils;

/**
 * 规范存取路径
 *
 * @author 魏骆淳
 */
public class UrlNormalize {

    /**
     * 规范存取路径
     *
     * @param path 规范前的路径
     * @return 规范后的路径
     */
    public static String urlNormalize(String path) {
        path = path.replace(' ', '-');
        path = path.replace(':', '-');
        path = path.replace('*', '-');
        path = path.replace('?', '-');
        path = path.replace('"', '-');
        path = path.replace('<', '-');
        path = path.replace('>', '-');
        path = path.replace('|', '-');
        return path;
    }

}
